<?php 

class User
{
	private  $_typeUser;
	private  $_loginUser;
	private  $_adresseUser;
    private  $_city;
    private  $_nomSociete;
	private  $_numTel;
		
	public function __construct($params)
	{
		$this->_typeUser = $params["type"];
		$this->_loginUser = $params["login"];
		$this->_adresseUser = $params["adresse"];
        $this->_city = $params["ville"];

        if($this->_typeUser == "Producteur"){
            $this->_nomSociete = $params["societe"];
	        $this->_numTel = $params["numTel"];
        }
	}	
	
	
	/****************************************************************************************/
	/* 									GETTERS												*/
	/****************************************************************************************/
	public function getCity()
	{
		return $this->_city;
	}

	public function getTypeUser()
	{
		return $this->_typeUser;
	}
	
	public function getLogin()
	{
		return $this->_loginUser;
	}
	
	public function getAdresse()
	{
		return  $this->_adresseUser;
	}

    public function getSociete()
	{
		return $this->_nomSociete;
	}
	
	public function getTel()
	{
		return $this->_numTel;
	}
}

?>